//
//  NSString+LNColor.m
//  LNDevelopExample
//
//  Created by wwww on 2018/9/12.
//  Copyright © 2018年 淘发现1iOS. All rights reserved.
//

#import "NSString+LNColor.h"

@implementation NSString (LNColor)

+(NSArray *)stringWithColors:(NSString *)str{
    
    NSMutableArray *array = [NSMutableArray array];
    NSArray *strs = [str componentsSeparatedByString:@","];
    for (NSString *colorstr in strs) {
        UIColor *color = LNColorFromHexString(colorstr);
        [array addObject:color];
    }
    
    return array;
}
@end
